package com.dooioo.pns.api.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * PackageName:com.dooioo.pns.api.controller
 * Author: Jerry.hu
 * Create: Jerry.hu (2015-05-13 下午8:17)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/api")
public class ApiController {
	@RequestMapping("/index")
	@ResponseBody
	public ResponseEntity<?> index(){
		JSONObject jsonObject = new JSONObject();
		jsonObject.put("status","OK");
		jsonObject.put("message","hello");
		return ResponseEntity.ok(jsonObject);
	}
}
